home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / gs24src.zip / UNIXTAIL.MAK < prev    next >
Text File  |  1992-03-24  |  4KB  |  107 lines

  1. #    Copyright (C) 1990, 1992 Aladdin Enterprises.  All rights reserved.
  2. #    Distributed by Free Software Foundation, Inc.
  3. #
  4. # This file is part of Ghostscript.
  5. #
  6. # Ghostscript is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. # to anyone for the consequences of using it or for whether it serves any
  9. # particular purpose or works at all, unless he says so in writing.  Refer
  10. # to the Ghostscript General Public License for full details.
  11. #
  12. # Everyone is granted permission to copy, modify and redistribute
  13. # Ghostscript, but only under the conditions described in the Ghostscript
  14. # General Public License.  A copy of this license is supposed to have been
  15. # given to you along with Ghostscript so you can know your rights and
  16. # responsibilities.  It should be in a file named COPYING.  Among other
  17. # things, the copyright notice and this notice must be preserved on all
  18. # copies.
  19.  
  20. # Partial makefile for Ghostscript, common to all Unix configurations.
  21.  
  22. # This is the last part of the makefile for Unix configurations.
  23. # Since Unix make doesn't have an 'include' facility, we concatenate
  24. # the various parts of the makefile together by brute force (in tar_cat).
  25.  
  26. # The following prevents GNU make from constructing argument lists that
  27. # include all environment variables, which can easily be longer than
  28. # brain-damaged system V allows.
  29.  
  30. .NOEXPORT:
  31.  
  32. # -------------------------------- Library -------------------------------- #
  33.  
  34. ## The Unix platform
  35.  
  36. unix__=gp_unix.$(OBJ)
  37. unix_.dev: $(unix__)
  38.     $(SHP)gssetmod unix_ $(unix__)
  39.  
  40. gp_unix.$(OBJ): gp_unix.c $(memory__h) $(string__h) $(gx_h) $(gp_h) \
  41.  $(stat__h) $(time__h)
  42.  
  43. # -------------------------- Auxiliary programs --------------------------- #
  44.  
  45. ansi2knr$(XE):
  46.     $(CC) -o ansi2knr$(XE) $(CFLAGS) ansi2knr.c $(EXTRALIBS)
  47.  
  48. genarch$(XE): genarch.c
  49.     $(CC) -o genarch$(XE) $(CFLAGS) genarch.c $(EXTRALIBS)
  50.  
  51. # ----------------------------- Main program ------------------------------ #
  52.  
  53. # (Dummy) tracing package
  54.  
  55. utrace.$(OBJ): utrace.c
  56.  
  57. # Main program
  58.  
  59. ALLUNIX=gsmain.$(OBJ) utrace.$(OBJ) $(LIB)
  60.  
  61. # Interpreter main program
  62.  
  63. GSUNIX=gs.$(OBJ) $(INT) $(ALLUNIX)
  64.  
  65. gs: $(GSUNIX) obj.tr lib.tr
  66.     $(SHP)echoq $(CC) $(LDFLAGS) $(XLIBDIRS) -o gs $(GSUNIX) >_temp_
  67.     cat obj.tr >>_temp_
  68.     cat lib.tr >>_temp_
  69.     echo $(EXTRALIBS) -lm >>_temp_
  70.     $(SH) <_temp_
  71.  
  72. # Installation
  73.  
  74. TAGS:
  75.     etags -t *.c *.h
  76.  
  77. install: gs
  78.     -mkdir $(bindir)
  79.     $(INSTALL_PROGRAM) gs $(bindir)
  80.     $(INSTALL_PROGRAM) gsnd $(bindir)
  81.     $(INSTALL_PROGRAM) bdftops $(bindir)
  82.     $(INSTALL_PROGRAM) font2c $(bindir)
  83.     $(INSTALL_PROGRAM) pfbtogs $(bindir)
  84.     -mkdir $(libdir)
  85.     $(INSTALL_DATA) gs_init.ps $(libdir)
  86.     $(INSTALL_DATA) gs_2asc.ps $(libdir)
  87.     $(INSTALL_DATA) gs_ccfnt.ps $(libdir)
  88.     $(INSTALL_DATA) gs_dps1.ps $(libdir)
  89.     $(INSTALL_DATA) gs_fonts.ps $(libdir)
  90.     $(INSTALL_DATA) gs_lev2.ps $(libdir)
  91.     $(INSTALL_DATA) gs_statd.ps $(libdir)
  92.     $(INSTALL_DATA) sym__enc.ps $(libdir)
  93.     $(INSTALL_DATA) gconfig.ps $(libdir)
  94.     $(INSTALL_DATA) quit.ps $(libdir)
  95.     $(INSTALL_DATA) Fontmap $(libdir)
  96.     $(INSTALL_DATA) uglyr.gsf $(libdir)
  97.     $(INSTALL_DATA) chess.ps $(libdir)
  98.     $(INSTALL_DATA) cheq.ps $(libdir)
  99.     $(INSTALL_DATA) golfer.ps $(libdir)
  100.     $(INSTALL_DATA) escher.ps $(libdir)
  101.     $(INSTALL_DATA) decrypt.ps $(libdir)
  102.     $(INSTALL_DATA) bdftops.ps $(libdir)
  103.     $(INSTALL_DATA) font2c.ps $(libdir)
  104.     $(INSTALL_DATA) pfbtogs.ps $(libdir)
  105.     $(INSTALL_DATA) pstoppm.ps $(libdir)
  106.     $(INSTALL_DATA) prfont.ps $(libdir)
  107.